package com.college.eduService.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.college.eduService.entity.EduCourse;
import com.baomidou.mybatisplus.extension.service.IService;
import com.college.eduService.entity.frontvo.CourseFrontVo;
import com.college.eduService.entity.frontvo.CourseWebVo;
import com.college.eduService.entity.vo.CourseInfoVo;
import com.college.eduService.entity.vo.CoursePublishVo;
import com.college.eduService.entity.query.CourseQuery;

import java.util.List;
import java.util.Map;

public interface EduCourseService extends IService<EduCourse>{

    //添加课程
    String saveCourse(CourseInfoVo courseInfoVo);
    //根据id查询课程
    CourseInfoVo getCourseById(String courseId);
    //修改课程
    void UpdateCourse(CourseInfoVo courseInfoVo);
    //课程提交信息显示
    CoursePublishVo publishCourseInfo(String id);
    //分页查询课程
    Page<EduCourse> pageQuery(Integer current, Integer limit, CourseQuery courseQuery);
    //删除课程
    void removeCourse(String id);
    //查询热门课程
    List<EduCourse> selectHotCourse();
    //前台多条件分页查询
    Map<String, Object> getCourseFrontInfo(Page<EduCourse> pageCourse, CourseFrontVo courseFrontVo);
    //前台课程详情
    CourseWebVo getBaseCourseInfo(String courseId);

    List<EduCourse> getCourseHistory(String courseId);
}
